package com.cdbkj.cloud.pos.bean;


public class JsonResult<T> {

    private int code;
    private String message;
    private T data;

    public JsonResult() {
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return 0 == this.code;
    }

    public String getMsg() {
        return this.message;
    }

    public void setMsg(String msg) {
        this.message = msg;
    }

    public boolean isNotSuccess() {
        return !this.isSuccess();
    }
}
